/**
 * Copyright (C) 2008 ChangSha WangWin Science & Technology CO,.LTD. All rights reserved.
 * WangWin PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */

/**
 * Copyright (C) 2002-2008 WUZEWEN. All rights reserved.
 * WUZEWEN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 *
 * This software is the confidential and proprietary information of
 * WuZeven, Personal. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with WuZeven.
 */

package com.kingcore.pda.database.bean;

import java.util.HashMap;

/**
 * <p> 管理各数据库的数据库字典对象。</p>
 * @author Zeven on 2008-11-25
 * @version	1.0
 * @see		Object#equals(java.lang.Object)
 * @see		Object#hashCode()
 * @see		HashMap
 * @since	JDK5
 */

public interface DatabaseDictionary {

	/**
	 * 
	 * <p>根据条件，生成获取表信息的sql语句。</p>
	 * @author Zeven on 2008-11-27
	 * @param tableCondition
	 * @return
	 */
	String createSqlOfTableInforByCondition(String tableCondition);

	/**
	 * 
	 * <p>根据数据库名称、表名称，生成获取表信息的sql语句。</p>
	 * @author Zeven on 2008-11-27
	 * @param dbName
	 * @param tableName
	 * @return
	 */
	String createSqlOfTableInforByName(String dbName, String tableName);

	/**
	 * 
	 * <p>根据条件，生成获取列信息的sql语句。</p>
	 * @author Zeven on 2008-11-27
	 * @param dbName
	 * @param tableId
	 * @param tableEn
	 * @return
	 */
	String createSqlOfColumnInforByCondition(String dbName, String tableId, String tableEn);

	String createSqlOfConstraintColumns(String dbName, String is_tblname, String constraint_name);

	String createSqlOfConstraints(String dbName, String tableEn);

	String createUpdateCommentSql(String dbName, String tableEn, String colEn, String comment);

}
